package router

import (
	"github.com/gogf/gf/v2/frame/g"
	"github.com/gogf/gf/v2/net/ghttp"

	"kstar-gf-api/app/middleware"
)

func init() {

	s := g.Server()

	// 路由注册
	s.Group("/mini/auth", func(group *ghttp.RouterGroup) {

		group.Group("/", func(group *ghttp.RouterGroup) {
			group.Bind()
		})

		// 需要登录的接口
		group.Middleware(middleware.MiddlewareLoginHandler)
		group.Group("/", func(group *ghttp.RouterGroup) {
			group.Bind()
		})
	})
}
